<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>编辑广告</title>
</head>
<body>
<div class="pd-20">
    <form action="{:U('edit')}" method="post" class="form form-horizontal" id="form">
        <input value="{$data.id}" type="text" name="id" hidden>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red">*</span>区号：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" placeholder="请输入" name="title" datatype="*" nullmsg="不能为空" value="{$data.aerainfo_code}">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>名称：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" placeholder="请输入" name="sort" value="{$data.aerainfo_name}">
            </div>
            <div class="col-4"></div>
        </div>

        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>英文名称：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" placeholder="请输入" name="sort" value="{$data.aerainfo_name_en}">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-3"><span class="c-red"></span>英文简称：</label>
            <div class="formControls col-5">
                <input type="text" class="input-text" placeholder="请输入" name="sort" value="{$data.aerainfo_shortname_en}">
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row cl">
            <div class="col-9 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="提交">
            </div>
        </div>
    </form>
</div>
</div>
<include file="Common:footer_include"/>
<script type="text/javascript" src="__HUI__lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript">
    $(function () {
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
        $("#form").Validform({
            tiptype: 2,
            callback: function (form) {
//                var index = parent.layer.getFrameIndex(window.name);
//                parent.$('.btn-refresh').click();
//                parent.layer.close(index);
//                form[0].submit();
            }
        });
    });
</script>
</body>
</html>